const rules = {
  name: [
    {
      required: true,
      message: '请输入媒体名称',
      trigger: 'blur'
    },
    {
      min: 1,
      max: 7,
      message: 'Length should be 1 to 7',
      trigger: 'blur'
    }
  ],
  intro: [
    {
      required: true,
      message: '请输入媒体介绍',
      trigger: 'blur'
    }
  ],
  email: [
    {
      required: true,
      message: '请输入邮箱',
      trigger: 'blur'
    },
    {
      /* eslint-disable */
      pattern: /^[A-Za-z0-9]+([_\.][A-Za-z0-9]+)*@([A-Za-z0-9\-]+\.)+[A-Za-z]{2,6}$/,
      message: '请输入正确的邮箱',
      trigger: 'blur'
    }
  ]
}

export { rules }
